import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { EBossRefreshType } from "./EBossRefreshType";
type int = number;
//class SCopyRefresh
    
    export  class SCopyRefresh extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCopyRefresh();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.type.__write(arg1);
            arg1.writeInt(this.num);
            arg1.writeInt(this.reserveInt3);
            arg1.writeInt(this.reserveInt4);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.type = EBossRefreshType.__read(arg1);
            this.num = arg1.readInt();
            this.reserveInt3 = arg1.readInt();
            this.reserveInt4 = arg1.readInt();
            return;
        }

        public /* const */_type: int=20427;

        public /* var */type: EBossRefreshType;

        public /* var */num: int;

        public /* var */reserveInt3: int;

        public /* var */reserveInt4: int;

        public static /* var */_regist: SCopyRefresh;
    }

            SCopyRefresh._regist = new SCopyRefresh(true);
        